Lesson 4 - Operators quiz
Quiz
The code below is using what operator?
x = 3
- Equality
- Comparison
- assignment
- logical
What is the keyword in the following statement?
print 21 + 2 * x
- +
- print
- *
- x
What type of operator is the following?
4 > 5
- Comparison
- mathematical
- assignment
- logical
What is the output of the following code?
if 4 = 5:
print "hello"
else:
print "bye"
- hello
- bye
- hellobye
- will cause an error
What will be printed out from the following code?
print 10 > 10 + 2
- true
- false
- will cause an error
- 22